var text = document.querySelector('.shou>input:nth-of-type(1)')
var mi = document.querySelector('.shou>input:nth-of-type(2)')
var deng = document.querySelector('.ttyk>p')
console.log(deng)
console.log(text)
console.log(mi)
deng.onclick=function fun(){
	if(text.value.length==0){
		alert('手机号不能为空')
	}else if(text.value.length!=11){
		alert('手机号格式不对')
	}else if(mi.value.length==0){
		alert('请输入密码')
	}else if(mi.value.length<6||mi.value.length>11){
		alert('密码格式不对')
	}else{
		window.location.href='../index.html'
	}
}